<#include "/admin/inc/ctx.html">
<#include "/admin/inc/pagerForm.html">
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);"  action="${ctx}/admin/advert/list">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>我的客户：</label>
				<input type="text" name="keywords"/>
			</li>
			<li>
			<label>我的客户：</label>
			<select class="combox" name="province">
				<option value="">所有省市</option>
				<option value="上海">上海</option>
			</select>
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
				<li><a class="button" href="demo_page6.html" target="dialog" mask="true" title="查询框"><span>导出</span></a></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
		    <@shiro.hasPermission name="admin:advert:form">
			    <li><a  href="${ctx}/admin/advert/form" target="dialog" width="600" height="250"><i class="fa fa-plus"></i>添加</a></li>
			    <li><a  href="${ctx}/admin/advert/form?id={id}" target="dialog" width="600" height="250" warn="请选择一条记录"><i class="fa fa-edit"></i>修改</a></li>
			</@shiro.hasPermission>
			<@shiro.hasPermission name="admin:advert:delete">
			    <li><a  href="${ctx}/admin/advert/delete?id={id}" target="ajaxTodo" title="确定要删除吗？" warn="请选择一条记录"><i class="fa fa-trash-o">&nbsp;</i>删除</a></li>
			</@shiro.hasPermission>
			<li class="line">line</li>
		</ul>
	</div>

	<div layoutH="124">
	<table class="list" targetType="navTab">
		<thead>
	    	<tr>
	    	<th width="5%"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
	        <th width="3%">编号</th>
	        <th width="8%">主题</th>
	        <th width="8%">广告位</th>
	        <th width="10%">图片地址</th>
	        <th width="10%">链接地址</th>
	        <th width="8%">开始时间</th>
	        <th width="8%">结束时间</th>
	        <th width="8%">点击次数</th>
	        <th width="20%">创建时间</th>
            <th width="10%">操作</th>	       
            </tr>
		</thead>
		<tbody>
			<#list pageData.page.records as bean>
	        <tr align="center" target="id" rel="${bean.id }">
	        <td><input  type="checkbox" name="ids" value="${bean.id }" /></td>
	        <td>${(bean.id)! }</td>
	        <td>${(bean.title)! }</td>
	        <td>${(bean.advertPositionName)! }</td>
	        <td><img src="${ctx }${(bean.imgUrl)! }" width="90%" height="40"/></td>
	        <td>${(bean.url)! }</td>
	        <td>${(bean.startTime)! }</td>
	        <td>${(bean.endTime)! }</td>
	        <td>${(bean.clickNum)!}</td>
	        <td>${(bean.createTime)! }</td>
	        <td>
	            <@shiro.hasPermission name="admin:advert:delete">
			    	<a title="删除" target="ajaxTodo" href="${ctx }/admin/advert/delete?id=${bean.id}"  class="delButton"><i class="fa fa-remove"></i>&nbsp;删除</a>
				</@shiro.hasPermission>
				<@shiro.hasPermission name="admin:advert:form">
				    <a title="编辑" target="dialog" href="${ctx}/admin/advert/form?id=${bean.id }" class="editButton"><i class="fa fa-file-text-o"></i>&nbsp;编辑</a>
				</@shiro.hasPermission>
			</td>
	        </tr>
           </#list>
		</tbody>
	</table>
	</div>
    <#include "/admin/inc/pagination.html">
</div>
